﻿using SportsStore.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SportsStore.Web.Models.Product
{
  public class ProductViewModel
  {
    public ProductViewModel()
    { 
    }

    public ProductViewModel(SportsStore.Model.Product product)
    {
      Id = product.Id;
      Name = product.Name;
      Description = product.Description;
      Price = product.Price;
      Category = product.Category.Name;
    }

    public int Id { get; set; }
    public string Name { get; set; }
    public string Description { get; set; }
    public decimal Price { get; set; }
    public string Category { get; set; }
  }
}